package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 店铺分类实体类
 */
@Data
@TableName("yy_shop_category")
@ApiModel(value = "ShopCategory对象", description = "商品管理模块-商品分类信息")
public class ShopCategory implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 分类ID
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "分类ID", example = "1")
    private Long id;
    
    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称", required = true, example = "女装")
    private String categoryName;
    /**
     * 分类名称
     */
    @ApiModelProperty(value = "商品类型0虚拟1实物", required = true, example = "0")
    private Integer prodType;

    
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序", example = "1")
    private Integer sort;
    
    /**
     * 状态：0-禁用，1-启用
     */
    @ApiModelProperty(value = "状态：0-禁用，1-启用", example = "1")
    private Integer status;
    
    /**
     * 店铺ID
     */
    @ApiModelProperty(value = "店铺ID", required = true, example = "1001")
    private Long shopId;
    
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", example = "2023-01-01 12:00:00")
    private Date createTime;
    
    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", example = "2023-01-01 12:00:00")
    private Date updateTime;
} 